package com.glowworms.core.web.view;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.view.AbstractView;

import com.glowworms.core.constant.WebConstant;

/**
 * 	JSON视图
 * 			主要增对特殊状态进行封装
 */
public class JSONView extends AbstractView {

	/**
	 * 
	 */
	public JSONView() {
		super();
		setContentType(WebConstant.CONTENT_TYPE_APPLICATION_JSON);
	}

	/**
	 * 
	 */
	@Override
	protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
		
		//TODO: 404
		
		//TODO: 500
		
		//TODO: error
	}
}
